
package com.tools.cleanmaster.receiver;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.tools.cleanmaster.manager.TrashManager;
import com.tools.cleanmaster.utils.FeatureConfig;
import com.tools.cleanmaster.utils.LogHelper;

public class NetworkChangeReceiver extends BroadcastReceiver {
    private static final String TAG = "NetworkChangeReceiver";

    private static final boolean DEBUG = FeatureConfig.DEBUG_LOG;

    @Override
    public void onReceive(Context context, Intent intent) {
        if (DEBUG) {
            LogHelper.i(TAG, "network");
        }
        TrashManager.getInstance().checkNotifyScan();
    }
}
